package com.extend.spring4;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;

public class User {
	private ApplicationContext context;
	
	public void init(){
		System.out.println("------------init-------------");
	}

	@Autowired
	public void setContext(ApplicationContext context) {
		System.out.println("=========setContext===========");
		this.context = context;
	}
}
